<table class="index">
	<thead>
		<tr>
			<th><%= t("name") %></th>
			<th></th>
		</tr>
	</thead>
	<tbody>
    <% @prototypes.each do |prototype| %>
      <tr id="row_<%= prototype.id %>">
        <td><%= prototype.name %></td>
		    <td class="actions">
					<%= link_to_remote icon('add') + ' ' + t("select"), 
		                         {:url => select_admin_prototype_url(prototype), 
		                         :update => 'rjs-target',
														 :before => "Element.show('busy_indicator')", 
				                     :complete => "Element.hide('busy_indicator');Element.hide('row_#{prototype.id}');"}, :class => 'iconlink' %>
				</td>
      </tr>
    <% end %>
    <% if @prototypes.empty? %>
     <tr><td colspan="2"><% t("none") %>.</td></tr>
    <% end %>
  </tbody>
</table>

<script id="rjs-target"></script>